home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / netBoot / h / video.h < prev   
Encoding:
C/C++ Source or Header  |  1988-05-13  |  1.5 KB  |  47 lines

  1.  
  2. /*    @(#)video.h 1.1 86/09/27 SMI    */
  3.  
  4. /*
  5.  * Copyright (c) 1986 by Sun Microsystems, Inc.
  6.  */
  7.  
  8. /*
  9.  * Sun-2 video display definitions
  10.  */
  11.  
  12. #ifndef VIDEO_COPY_SHIFT
  13.  
  14. /*
  15.  * The video memory is just memory, tho it can also copy data that is
  16.  * written to other locations.
  17.  *
  18.  * The A-side of the ZSCC connects to the keyboard.
  19.  * The B-side of the ZSCC connects to the mouse.
  20.  *
  21.  * The video control register is arranged as shown below.
  22.  *
  23.  * Vc_copybase specifies the base (physical) address in main memory
  24.  * where, if a write is done, the write is also done to the frame buffer.
  25.  * Note that copying only works on 128K boundaries even tho the base address
  26.  * is specified in 64K units.  This makes it easier to set since you
  27.  * just lop off the bottom 16 bits of the address.
  28.  */
  29. struct videoctl {
  30.     unsigned vc_video_en:1;        /* Video enable */
  31.     unsigned vc_copy_en:1;        /* Copy enable */
  32.     unsigned vc_int_en:1;        /* Interrupt enable */
  33.     unsigned vc_int:1;        /* Int active - r/o */
  34.     unsigned vc_b_jumper:1;        /* Config jumper, 0=default */
  35.                     /* FIXME: 1=manufacturing burnin */
  36.                     /* This is a 'temporary' kludge */
  37.     unsigned vc_a_jumper:1;        /* Config jumper, 0=default */
  38.     unsigned vc_color_jumper:1;    /* Config jumper, 0=default */
  39.                     /* 1=use S-2 color as console */
  40.     unsigned vc_1024_jumper:1;    /* Config jumper, 0=default */
  41.                     /* 1=screen is 1024*1024 */
  42.     unsigned vc_copybase:8;        /* Base addr of memory to copy from */
  43. };
  44. #define VIDEO_COPY_SHIFT    16    /* In 64K units (16 bit shift) */
  45.  
  46. #endif
  47.